package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.CheckBox;
import com.cy.pj.sys.pojo.SysRole;
import com.cy.pj.sys.pojo.SysRoleMenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleDao {
    List<CheckBox> findObjects();
    SysRoleMenuVo findObjectById(Integer id);
    int updateObject(SysRole entity);
    int insertObject(SysRole entity);
    List<SysRole> findPageObjects(
            @Param("name")String  name,
            @Param("startIndex")Integer startIndex,
            @Param("pageSize")Integer pageSize);

    int getRowCount(@Param("name") String name);
    int deleteObject(Integer id);
}
